package com.gz.vo;

import com.gz.utils.DataFmtUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

@Data
@ApiModel(value = "基础查询入参",description = "基础查询入参" )
public class BaseVO {
    @ApiModelProperty(value = "排序字段")
    private String orderField;
    @ApiModelProperty(value = "排序类型")
    private String orderType;

    public String getOrderField() {
        if(!StringUtils.isEmpty(orderField)){
            return DataFmtUtil.xX2x_x(orderField);
        }
        return orderField;
    }
}
